package com.doone.telmarket.domain;

import java.io.Serializable;

/**
 * 
 * @author 吴同庆
 * @date 2009-9-18
 * @description 站点文件
 * @package     com.doone.telmarket.domain
 */
public class SiteFile implements Serializable {

	private static final long serialVersionUID = -5902577204072067935L;

	private static final String DELIMITER = ".";

	private static final String DEFAULT_EXTENSION = "html";

	private String name;

	private String extension;

	public SiteFile(String name) {
		this.name = name;
		extension = DEFAULT_EXTENSION;
	}

	public SiteFile(String name, String extension) {
		this.name = name;
		this.extension = extension;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public String getFullName() {
		StringBuffer buffer = new StringBuffer();
		buffer.append(getName());
		buffer.append(DELIMITER);
		buffer.append(getExtension());
		return buffer.toString();
	}

}
